<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/8/6
  Time: 19:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="JS/jquery.min.js"></script>
    <link rel="stylesheet" href="CSS/bootstrap.css">
    <script src="JS/jquery-1.8.3.js"></script>
</head>
<body>

<table class="table table-striped">
    <tr>
        <td>题号</td>
        <td>问题</td>
        <td>选项</td>
        <td>答案</td>
    </tr>
    <c:if test="${empty requestScope.questionList}">
        <tr>
            <td>暂无试题!!</td>
        </tr>
    </c:if>

    <c:forEach items="${requestScope.resultList}" var="u" varStatus="s">
        <tr>
            <td>${u.question.qId}</td>
            <td>${u.question.context}</td>
            <td>
                    ${u.result}<input type="radio" name="${u.question.qId}">
            </td>
        </tr>
    </c:forEach>
</table>


</body>
</html>
